{% extends "base_generic.html" %}

{% block content %}
  <h1>确认删除</h1>

  <p>你确定要删除 "{{ object.title }}" 这本书吗？</p>

  <form method="post">
    {% csrf_token %}
    {{ form.as_p }}  <!-- 显示确认复选框 -->
    <button type="submit" class="btn btn-danger">删除</button>
    <a href="{% url 'books' %}" class="btn btn-secondary">取消</a>
  </form>
{% endblock %}